<?php 
	require ("../../Modelo/modelo.php");
	$objModelo = new Formulario();
?>

<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Editar</title>
<script type="text/javascript" src="../bootstrap/<ajax/ajax.js"></script>
<script type="text/javascript">
	var LS03NB = "", LS04AP1="", LS08SC="", telefono="", descripcion="", imagen="", pais="", LS00IDUS="",; 
  
  function modificarInformacion(){
    LS00IDUS = document.getElementById("LS00IDUS_editar").value;
    LS03NB = document.getElementById("LS03NB_editar").value;
    LS04AP1 = document.getElementById("LS04AP1_editar").value;
    LS05AP2 = document.getElementById("LS05AP2_editar").value;
    LS07NV = document.getElementById("LS07NV_editar").value;
    LS08SC = document.getElementById("LS08SC_editar").value;
    LS00IDUS = document.getElementById("LS00IDUS_editar").value;
    if(LS00IDUS!="" && LS03NB!="" && LS04AP1!="" && LS05AP2!="" && LS07NV!="" && LS08SC!=""){
			ajax_("../Controlador/controlador.php?modelo_editar="+LS00IDUS+"&LS03NB_editar="+LS03NB+"&LS04AP1_editar="+LS04AP1+"LS05AP2_editar="+LS05AP2+"&LS07NV_editar="+LS07NV+"&LS08SC_editar="+LS08SC+"&LS00IDUS_editar="+LS00IDUS);
    }else{
      alert("Ingrese toda la informacion.");
    }   
  }
</script>
</head>

<body>
<form>
  <?php 
    if(isset($_GET["LS00IDUS"]) && isset($_GET["LS03NB"]) && isset($_GET["LS04AP1"]) && isset($_GET["LS05AP2"]) && isset($_GET["LS07NV"]) && isset($_GET["LS08SC"])){
      $LS00IDUS=$_GET["LS00IDUS"];
      $LS00IDUS=$_GET["LS00IDUS"];
      $LS03NB=$_GET["LS03NB"];
      $LS04AP1=$_GET["LS04AP1"];
      $LS05AP2=$_GET["LS05AP2"];
      $LS07NV=$_GET["LS07NV"];
      $LS08SC=$_GET["LS08SC"];      
      }
  ?>
  <br />
  <br />
  <table width="200" border="0" align="center">
    <input type="hidden" name="LS00IDUS_editar" id="LS00IDUS_editar" value="<?php echo $LS00IDUS; ?>" />
    <tr>
      <td>Cedula</td>
      <td><input type="text" name="LS00IDUS_editar" id="LS00IDUS_editar" value="<?php echo $LS00IDUS; ?>" /></td>
    </tr>
    <tr>
      <td>Nombre</td>
      <td><input type="text" name="LS03NB_editar" id="LS03NB_editar" value="<?php echo $LS03NB; ?>" /></td>
    </tr>
    <tr>
      <td>Apellido1</td>
      <td><input type="text" name="LS04AP1_editar" id="LS04AP1_editar"  value="<?php echo $LS04AP1; ?>" /></td>
    </tr>
    <tr>
      <td>Apellido2</td>
      <td><input type="text" name="LS05AP2_editar" id="LS05AP2_editar" value="<?php echo $LS05AP2; ?>" /></td>
    </tr>
    <tr>
      <td>Grado</td>
      <td><input type="text" name="LS07NV_editar" id="LS07NV_editar" value="<?php echo $LS07NV; ?>" /></td>
    </tr>
    <tr>
      <td>Seccion</td>
      <td><input type="text" name="LS08SC_editar" id="LS08SC_editar" value="<?php echo $LS08SC; ?>" /></td>
    </tr>
    <tr>
      <td colspan="3" align="center"><input type="button" value="Modificar" onclick="modificarInformacion();" /></td>
    </tr>
  </table>
  <div id="resultado" align="center"></div>
</form>
<br />
<br />
<br />
</body>
</html>